package com.youhong.teethcare

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import com.youhong.teethcare.adapter.CommonProblemAdapter
import kotlinx.android.synthetic.main.activity_brushing_steps.*
import kotlinx.android.synthetic.main.activity_common_problem.*
import kotlinx.android.synthetic.main.activity_common_problem.aboutUs_iv_back

class CommonProblemActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_common_problem)
        initStatusBar(resources.getColor(R.color.pageBackground), true)
        init();
    }
   fun init(){
       aboutUs_iv_back.setOnClickListener { finish() }
        var adapter=CommonProblemAdapter(resources.getStringArray(R.array.commonProblemArrays_title),
                resources.getStringArray(R.array.commonProblemArrays_content))
       var manager=LinearLayoutManager(this)
       manager.orientation=LinearLayoutManager.VERTICAL;
       RecyclerView_CommonProblem.adapter=adapter;
       RecyclerView_CommonProblem.layoutManager=manager
    }
}